package com.gzx.plugin.data.wxjk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gzx.plugin.data.wxjk.entity.DataWxjkContactInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Set;


public interface DataWxjkContactInfoMapper extends BaseMapper<DataWxjkContactInfo> {

    @Select({
            "<script>",
            "SELECT * FROM data_wxjk_sssjContactInfo ",
            "WHERE business_id IN ",
            "<foreach collection='businessIds' item='id' open='(' separator=',' close=')'>",
            "#{id}",
            "</foreach>",
            "</script>"
    })
    List<DataWxjkContactInfo> getDataByBusinessIds(@Param("businessIds") Set<Long> businessIds);
}
